<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/10/22
 * Time: 10:01
 */

namespace app\api\validate;


class MiniParameter extends BaseValidate
{
    protected $rule=[
        'signature'=>'require|isNotEmpty',
        'timestamp'=>'require|isNotEmpty',
        'nonce'=>'require|isNotEmpty',
        'encrypt_type'=>'require|isNotEmpty',
        'msg_signature'=>'require|isNotEmpty',
        'version'=>'require|isNotEmpty'
    ];

    protected $message=[
        'signature'=>'消息返回签名不能为空',
        'timestamp'=>'消息返回时间戳不能为空',
        'nonce'=>'消息随机字符串不能为空',
        'encrypt_type'=>'消息加密类型不能为空',
        'msg_signature'=>'信息签名不能为空',
        'version'=>'接口版本不能为空'
    ];
}